package com.vizhuo.app.constant;

import java.util.ArrayList;
import java.util.List;

import com.vizhuo.utils.term.Term;

/**
 * @author dcq 作者 E-mail: ding_chuanqin@163.com
 * @date 创建时间：2016年7月1日 下午3:10:39
 * @version 1.0
 * @parameter
 * @since
 * @return
 */
public final class AppVersionConstant {

    /**
     * Android客户端-司机版
     */
    public static final int TYPE_ANDROID_DRIVER = 11;

    /**
     * Android客户端-发货商
     */
    public static final int TYPE_ANDROID_CONSIGNER = 12;

    /**
     * Android客户端-物流公司
     */
    public static final int TYPE_ANDROID_ENTERPRISE = 13;

    /**
     * IOS客户端-司机版
     */
    public static final int TYPE_IOS_DRIVER = 21;

    /**
     * IOS客户端-发货商
     */
    public static final int TYPE_IOS_CONSIGNER = 22;

    /**
     * IOS客户端-物流公司
     */
    public static final int TYPE_IOS_ENTERPRISE = 23;

    public static final int[] ALL_TYPE = new int[] { TYPE_ANDROID_DRIVER, TYPE_ANDROID_CONSIGNER,
            TYPE_ANDROID_ENTERPRISE, TYPE_IOS_DRIVER, TYPE_IOS_CONSIGNER, TYPE_IOS_ENTERPRISE };

    public static final int[] ANDROID_TYPE = new int[] { TYPE_ANDROID_DRIVER, TYPE_ANDROID_CONSIGNER,
            TYPE_ANDROID_ENTERPRISE };

    public static final int[] IOS_TYPE = new int[] { TYPE_IOS_DRIVER, TYPE_IOS_CONSIGNER, TYPE_IOS_ENTERPRISE };

    /**
     * 司机客户端
     */
    public static final int[] TYPE_DRIVER_ALL = new int[] { TYPE_ANDROID_DRIVER, TYPE_IOS_DRIVER };

    /**
     * 商户客户端
     */
    public static final int[] TYPE_CONSIGNER_ALL = new int[] { TYPE_ANDROID_CONSIGNER, TYPE_IOS_CONSIGNER };

    /**
     * 物流客户端
     */
    public static final int[] TYPE_ENTERPRISE_ALL = new int[] { TYPE_ANDROID_ENTERPRISE, TYPE_IOS_ENTERPRISE };

    public static List<Term> typeList() {
        List<Term> list = new ArrayList<Term>();
        list.add(new Term("" + TYPE_ANDROID_DRIVER, "司机端Android版"));
        list.add(new Term("" + TYPE_ANDROID_CONSIGNER, "发货端Android版"));
        list.add(new Term("" + TYPE_ANDROID_ENTERPRISE, "物流端Android版"));
        list.add(new Term("" + TYPE_IOS_DRIVER, "司机端IOS版"));
        list.add(new Term("" + TYPE_IOS_CONSIGNER, "发货端IOS版"));
        list.add(new Term("" + TYPE_IOS_ENTERPRISE, "物流端IOS版"));
        return list;
    }
}
